/*聊天窗口标题*/
.message-hd{
  height: 40px;
  width: 100%;
  position: fixed;
  top: 0;
  background-color: #f5f5f5;
  text-align: center;
  line-height: 40px;
}
/*标题文字*/
.message-hd h1{
  font-size: 16px;
}
/*返回箭头*/
.arrow-wrap{
  width: 40px;
  height:40px;
  position: absolute;
  top: 0;
  left: 0;
}
.arrow-back{
  display: block;
  width: 12px;
  height: 12px;
  border-top: 2px solid #ccc;
  border-right:2px solid #ccc;
  transform: rotate(-135deg);
  margin-top: 16px;
  margin-left: 20px;
}
/*聊天列表*/
#message-box{
  padding:40px 15px 60px;
  overflow-y:auto;
}
#message-list li {
  margin-bottom: 15px;
  width: 100%;
}
/*聊天时间*/
#message-list .time{
  margin: 7px 0;
  text-align: center;
}
.time>span{
  padding:0 18px;
  font-size: 9px;
  color: #ffffff;
  border-radius: 2px;
  background-color: #dcdcdc;
}
.main .photo{
  float:left;
  width: 30px;
  height: 30px;
  margin-right: 10px;
}
.main .text{
  display: inline-block;
  padding:0 10px;
  line-height: 1.8em;
  font-size: 12px;
  background-color: #eee;
  border-radius: 4px;

}
#message-list .main{
  text-align: left;
}
#message-list .self{
  text-align: right;
}
.self .photo{
  float: right;
  margin-left: 10px;
}
.self .text{
  background-color: #b2e281;
}
/*消息输入框*/
.message-input{
  width: 100%;
  height: 60px;
  display: flex;
  border-top: 1px solid #ccc;
  position: fixed;
  bottom: 0;
  padding: 12px;
  background-color: #f5f5f5;
}
.message-text{
  flex: 1;
  height: 36px;
}
.message-btn{
  width: 60px;
  height: 34px;
  padding: 8px;
  margin-left: 5px;
}
